﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
namespace project_phoenix.source
{
    public class HudManager
    {
        // Members
        private List<HudElement> mElementList;

        public HudManager()
        {
            mElementList = new List<HudElement>();
        }

        public void AddElement( HudElement eleToAdd)
        {
            mElementList.Add(eleToAdd);
        }

        public void Update(GameTime gt)
        {
            foreach (HudElement ele in mElementList)
            {
                ele.Update(gt);
            }
        }

        public void LoadContent()
        {
            foreach (HudElement ele in mElementList)
            {
                ele.LoadContent();
            }
        }

        public void Draw()
        {
            foreach (HudElement ele in mElementList)
            {
                ele.Draw();
            }
        }
    }
}
